package com.llp.javaweb.dao;

import com.llp.javaweb.mapper.ProductMapper;
import com.llp.javaweb.util.SqlSessionUtil;
import org.apache.ibatis.session.SqlSession;

/**
 * @BelongsProject: AscentWeb
 * @BelongsPackage: com.llp.javaweb.dao
 * @Author: bovan
 * @Date: 2022/11/2 09:31
 * @Description:
 */
public class ProductDAO {
    public static ProductMapper getProducts()
    {
        SqlSession sqlSession = SqlSessionUtil.getSqlSession();
        ProductMapper mapper = sqlSession.getMapper(ProductMapper.class);
        return mapper;
    }
}
